package com.cw.auth.domain.convert;

import com.cw.auth.domain.entity.AuthRoleBO;
import com.cw.auth.domain.entity.AuthUserBO;
import com.cw.auth.infra.basic.entity.AuthRole;
import com.cw.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthRoleConvert {
    AuthRoleConvert INSTANCE = Mappers.getMapper(AuthRoleConvert.class);


    // 通过AuthRoleBO转化为AuthRole
    AuthRole convertBoToEntity(AuthRoleBO authRoleBO);

    AuthRoleBO convertEntityToBo(AuthRole authRole);

}
